import axios from '@/util/axios';
import { OSS } from '@/util/constant'


const actions = {

    // from global module
    async getPolicy(store: any) {
        try {
            let res = await axios.get(OSS.URL)
            store.commit('setPolicy', res.data)
        } catch (e) {
            console.log(e)
        }
    },
    async getAllTips (store: any) {
        let res = await axios.get('orders/order/getPendingOrderCount')
        store.commit('setAllTips', res.data)

    }
}
export default actions